class GarageModels {
  int? currentPage;
  int? pageSize;
  int? totalNum;
  int? isMore;
  int? totalPage;
  int? startIndex;
  List<GarageNameModel>? items;

  GarageModels(
      {this.currentPage,
        this.pageSize,
        this.totalNum,
        this.isMore,
        this.totalPage,
        this.startIndex,
        this.items});

  GarageModels.fromJson(Map<String, dynamic> json) {
    currentPage = json['currentPage'];
    pageSize = json['pageSize'];
    totalNum = json['totalNum'];
    isMore = json['isMore'];
    totalPage = json['totalPage'];
    startIndex = json['startIndex'];
    if (json['items'] != null) {
      items = <GarageNameModel>[];
      json['items'].forEach((v) {
        items!.add(new GarageNameModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['currentPage'] = this.currentPage;
    data['pageSize'] = this.pageSize;
    data['totalNum'] = this.totalNum;
    data['isMore'] = this.isMore;
    data['totalPage'] = this.totalPage;
    data['startIndex'] = this.startIndex;
    if (this.items != null) {
      data['items'] = this.items!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class GarageNameModel {

  String? name;
  int? parkingLotId;

  GarageNameModel({this.name, this.parkingLotId});

  GarageNameModel.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    parkingLotId = json['parkingLotId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['parkingLotId'] = this.parkingLotId;
    return data;
  }
}

class Area {
  String? area;
  int? enterpriseId;
  String? floorPlan;
  int? id;
  String? name;
  int? parkingId;
  double? ratio;
  int? sort;
  String? thumbnail;

  Area(
      {this.area,
        this.enterpriseId,
        this.floorPlan,
        this.id,
        this.name,
        this.parkingId,
        this.ratio,
        this.sort,
        this.thumbnail});

  Area.fromJson(Map<String, dynamic> json) {
    area = json['area'];
    enterpriseId = json['enterpriseId'];
    floorPlan = json['floorPlan'];
    id = json['areaId'];
    name = json['areaName'];
    parkingId = json['parkingId'];
    ratio = json['ratio'];
    sort = json['sort'];
    thumbnail = json['thumbnail'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['area'] = this.area;
    data['enterpriseId'] = this.enterpriseId;
    data['floorPlan'] = this.floorPlan;
    data['id'] = this.id;
    data['name'] = this.name;
    data['parkingId'] = this.parkingId;
    data['ratio'] = this.ratio;
    data['sort'] = this.sort;
    data['thumbnail'] = this.thumbnail;
    return data;
  }
}